<?php
class Poster extends CI_Model {
	function __construct() {
		parent::__construct();
		$this->load->database();
	}
	
	public function createPoster($data) {
		$this->db->insert('posters', $data);
		return $this->db->insert_id();
	}
	
	public function deletePoster($pid) {
		$this->db->delete('posters', array('pid' => $pid));
	}
}
?>